
import requests

# 隧道域名:端口号
tunnel = "k439.kdltps.com:15818"

# 用户名密码方式
username = "t16308708683759"
password = "377zm68j"
proxies = {
    "http": "http://%(user)s:%(pwd)s@%(proxy)s/" % {"user": username, "pwd": password, "proxy": tunnel},
    "https": "http://%(user)s:%(pwd)s@%(proxy)s/" % {"user": username, "pwd": password, "proxy": tunnel}
}

res = requests.get("https://httpbin.org/get", proxies=proxies)
print(res.json())




